#include <stdio.h>
#include <math.h>

int main()
{
	int a, b, c,x,x1,x2;
	printf("input a,b and c:");
	scanf_s("%d%d%d", &a, &b, &c);
	x1 = (-b + sqrt(b * b - 4*a*c)) / 2*a;
	x2 = (-b - sqrt(b * b - 4*a*c)) / 2*a;
	printf("x1=%d\n", x1);
	printf("x2=%d\n", x2);
	return 0;
}